@if ($users->count())
	<div class="table-responsive">
	    <table class="table table-striped table-bordered table-condensed table-hover table-sort">
	        <thead>
				<tr>
					<th>{{ headColumnSort ([
							'label' => 'Username',
							'sort'	=> 'username'
						]) }}
					</th>
			        <th>{{ headColumnSort ([
							'label' => 'Email',
							'sort'	=> 'email'
						]) }}
					</th>
			        <th>{{ headColumnSort ([
							'label' => 'Phone',
							'sort'	=> 'phone'
						]) }}
					</th>
			        <th>{{ headColumnSort ([
							'label' => 'Name',
							'sort'	=> 'name'
						]) }}
					</th>
			        <th></th>
	            </tr>
	        </thead>
	        <tbody id="table-placeholder">
	            @foreach ($users as $user)
	       			<tr>
	                    <td>{{ $user->username }}</td>
				        <td>{{ $user->email }}</td>
				        <td>{{ $user->phone }}</td>
				        <td>{{ $user->name }}</td>
	                    <td class="text-center">
	                    	<a class="btn btn-info btn-xs" href="{{ url('admin/user/' . $user->id . '/edit') }}"><span class="glyphicon glyphicon-edit"></span> Edit</a>
	          				{{ Form::open(['method' => 'DELETE', 'route' => ['admin.user.destroy', $user->id], 'role' => 'delete']) }}
	                            <button type="submit" class="btn btn-danger btn-xs"><span class="glyphicon glyphicon-remove"></span> Del</button>
	                        {{ Form::close() }}
	                    </td>
	                </tr>
	            @endforeach
	        </tbody>
	    </table>
	</div>
	<div class="pagination">{{ $users->appends(['sort' => $sort, 'order' => $order])->links() }}</div>
@else
    There are no users
@endif